﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Landscape.Diagnostics {
    /// <summary>
    /// Represents a Landscape rendering session
    /// </summary>
    public class RenderSession {
        /// <summary>
        /// The total duration of this session
        /// </summary>
        public TimeSpan Duration {
            get;
            set;
        }

        private IList<RenderTask> _Tasks = new List<RenderTask>();
        /// <summary>
        /// A list of tasks involved into this session
        /// </summary>
        public IList<RenderTask> Tasks {
            get {
                return _Tasks;
            }
        }
    }
    /// <summary>
    /// Represents a task occurring during a Landscape rendering session
    /// </summary>
    public class RenderTask {
        /// <summary>
        /// The duration of this task
        /// </summary>
        public TimeSpan Duration {
            get;
            set;
        }
        /// <summary>
        /// The sequential order into which this task was executed
        /// </summary>
        public int Order {
            get;
            set;
        }

        /// <summary>
        /// The template involved into this task
        /// </summary>
        public string TemplatePath {
            get;
            set;
        }
    }
}
